class Person(object):
    def __init__(self, name, age):
        self.name = name
        self.__age = age

    def show_person(self):
        print(self.name)
        print(self.__age)

    def __haha(self):
        print('heahaha')


p = Person("王老师", 20)
p.show_person()
# print(p)
# print(p.__hash__)
print(dir(p))
print(p._Person__age)
# print(p.__age)   # 私有属性、方法 会变，例如 __age变为_Person__age
